{% extends "subfactory/base.html" %}
{% block menu %}
	<div>
	<p><h5>{{document.title}}</h5></p>
	<p><a href="{% url 'index' %}">Accueil</a></p>
	<p><a href="{% url 'document_change' version.document.id %}">Modifier</a></p>
	<p><a href="{% url 'download_translation' version.id %}">Télécharger traduction</a></p>
	<p>
	<ul>
	{%for v in version_list%}
	<li><a href="{% url 'version' v.id %}">{{ v }}</a>&nbsp;&nbsp;<a href="{% url 'difference' last_version.id v.id%}">diff</a></li>
	{%endfor%}
	</ul>
	</p>
	</div>
{% endblock menu %}
{% block content %}
	<div>
	<p>
	{% for line in document.lines %}
	<p><div class="initial">{{ line.content.strip|linebreaksbr }}</div>
	<div class="translation">{{ line.traduction.strip|linebreaksbr }}</div></p>
	{% endfor%}
	</p>
	</div>
{% endblock content %}
